<template>
	<view>
		这是comp组件{{msg}}
	</view>
</template>

<script>
	export default {
		name:"comp",
		mounted() {
			var that=this
			console.log(1111)
			uni.$on("changeNum",function(res){
				
				that.msg+=res
			})
		},
		data() {
			return {
				msg:8
			};
		}
	}
</script>

<style>

</style>
